<?php

use App\Models\DeviceRecord;
use Illuminate\Database\Seeder;

class DeviceRecordTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        if(env('APP_ENV') == 'local'){
            DeviceRecord::create([
                            'device_id' => 1,
                            'TDS1' => 100,
                            'TDS2' => 10,
                            'message_number' => 10,
                            'dec_status' => 1,
                            'filter1' => 90,
                            'filter2' => 10,
                            'filter3' => 100,
                            'filter4' => 70,
                            'filter5' => 90,
                            'total_flow' => 100,
                            'residual_flow' => 50,
                            'flow_status' => 0,
                            'filter_status' => 0,
                ]);

            DeviceRecord::create([
                            'device_id' => 3,
                            'TDS1' => 110,
                            'TDS2' => 10,
                            'message_number' => 11,
                            'dec_status' => 2,
                            'filter1' => 90,
                            'filter2' => 20,
                            'filter3' => 10,
                            'filter4' => 70,
                            'filter5' => 90,
                            'total_flow' => 200,
                            'residual_flow' => 150,
                            'flow_status' => 0,
                            'filter_status' => 0,
                ]);

            DeviceRecord::create([
                            'device_id' => 3,
                            'TDS1' => 110,
                            'TDS2' => 42,
                            'message_number' => 11,
                            'dec_status' => 1,
                            'filter1' => 10,
                            'filter2' => 80,
                            'filter3' => 10,
                            'filter4' => 10,
                            'filter5' => 0,
                            'total_flow' => 100,
                            'residual_flow' => 150,
                            'flow_status' => 0,
                            'filter_status' => 0,
                ]);

        }
    }
}
